package cn.stalk.compare.test.bean;

import cn.stalk.compare.anno.AComparable;

import java.util.Date;

public class User {
    @AComparable(true)
    private String id;
    private String code;
    @AComparable
    private String name;
    @AComparable
    private String remark;
    private Date birth;
    @AComparable(splitToList = ",", toSet = true)
    private String tags; // 标签，多个逗号分割
    @AComparable
    private int age;

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public String getCode() {
        return code;
    }

    public Date getBirth() {
        return birth;
    }

    public String getRemark() {
        return remark;
    }

    public String getTags() {
        return tags;
    }

    public User setAge(int age) {
        this.age = age;
        return this;
    }

    public User setCode(String code) {
        this.code = code;
        return this;
    }

    public User setId(String id) {
        this.id = id;
        return this;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }

    public User setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public User setBirth(Date birth) {
        this.birth = birth;
        return this;
    }

    public User setTags(String tags) {
        this.tags = tags;
        return this;
    }
}
